package org.webdb.service;

import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;

import org.webdb.core.DocumentRecord;
import org.webdb.core.database.DataBase;
import org.webdb.core.database.Record;

public interface PostDocumentService {

    @POST
    @Path("{database}/{cluster}/{document}")
    public DocumentRecord createRecord(
            @PathParam("database") DataBase database,
            @PathParam("cluster") String clusterName,
            @PathParam("document") String documentName, Record record);

    @POST
    @Path("{database}/{document}")
    public DocumentRecord createRecord(
            @PathParam("database") DataBase database,
            @PathParam("document") String documentName, Record record);
}
